﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BottleController : MonoBehaviour 
{
	Animator animator;
	bool open = false;

	void Awake()
	{
		animator = GetComponent<Animator> ();
	}

	void OnMouseDown()
	{
		animator.SetBool ("Open", !open);
		open = !open;
	}
}
